package com.szzg10.pattern.combination;

import java.util.Iterator;

public class MenuItem extends Composite {

	private String message;
	
	public MenuItem(String message) {
		this.message = message;
	}
	
	@Override
	public void add(Composite composite) {}

	@Override
	public void remove(Composite composite) {}

	@Override
	public Iterator<Composite> createIterator() {
		return null;
	}

	@Override
	public void print() {
		System.out.println(message);
	}

}
